<!-- 头部全局 -->
<style>
    .navbar-default .navbar-nav  .active{
    color: #f9a900 !important;
}
</style>
<div class="navbar navbar-default header-nav nav-top">
    <div class="container-fluid nav-fluid" style="background: #fff;">
        <div class="header-container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
                <a class="navbar-brand" href="/" style="background: #FFF;height: 108px;">
                    <div class="am-table">
                        <div class="am-tablecell">
                            <img src="<?php echo G_STATIC_URL; ?>/aomas/common/logo.png" alt="aomas " class="am-logo">
                        </div>
                    </div>
                </a>
            </div>
        
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="background: #fff;">
                <!-- <ul class="nav navbar-nav navbar-right nav-list left-line hidden">
                    <li><a href="#">登录</a></li>
                    <li><a href="#">注册</a></li>
                </ul> -->
                <!-- 登陆&注册栏 -->
                <?php if ($this->user_id) { ?>
                <ul class="nav navbar-nav navbar-right nav-list left-line" style="padding-left: 20px">
                    <!-- 欢迎您：<?php echo $this->user_id; ?> -->
                    <li>
                        <a href="/people/<?php echo $this->user_info['url_token']; ?>">
                            <img src="<?php echo G_STATIC_URL; ?>/aomas/common/me.png" alt="">
                        </a>
                    </li>
                    <li>
                        <a href="/cart" style="padding-right: 0">
                            <img src="<?php echo G_STATIC_URL; ?>/aomas/common/shop-collect.png" alt="" style="width:20px;height:20px;">
                        </a>
                    </li>
                </ul>
                <?php } else { ?>
                <ul class="nav navbar-nav navbar-right nav-list left-line" style="padding-left: 20px">
                    <li><a href="account/login/"><?php _e('登录'); ?></a></li>
                    <?php if (get_setting('register_type') == 'open') { ?>
                    <li><a href="account/register/" style="padding-right: 0"><?php _e('注册'); ?></a></li>
                    <?php }?>
                </ul>
                <?php }?>

                <!-- end 登陆&注册栏 -->

                <!-- 用户栏 -->

                <!-- end 用户栏 -->

                <ul class="nav navbar-nav navbar-right nav-list" style="padding-right: 20px">

                    <!--<li><a href="#">在线商城</a></li>-->
                    <!--<li><a href="#">OMS-401 PLUS</a></li>-->
                    <!--<li><a href="#">OMS-H7</a></li>-->
                    <!--<li><a href="#">OMS-1501</a></li>-->
                    <!--<li><a href="#">OMS-1705</a></li>-->
                    <!--<li><a href="#">企业团购</a></li>-->
                    <!--<li><a href="/explore/">官方论坛</a></li>-->
                    <!--<li><a href="/customer_service">服务</a></li>-->
                    <?php foreach($this->aomas_nav_menu['one'] as $key=>$val){ ?>
                         <li><a href="<?php echo $val['link'];?>"><?php echo $val['title'];?></a></li>
                    <?php }?>
                </ul>

            </div><!-- /.navbar-collapse -->
        </div>
    </div><!-- /.container-fluid -->
</div>

<div class="navbar navbar-default header-nav" id="cate-nav">
    <div class="header-container clearfix">
        <ul class="nav navbar-nav navbar-left nav-list2 nav-cate">
            <li><a href="/" <?php if($_GET['app']=='aomas_home' && $_GET['act']=='index'){ ?> class="active" <?php }?>>首页</a></li>
            <?php foreach($this->aomas_nav_menu['two'] as $key=>$val){ ?>
             <li><a href="<?php echo $val['link'];?>" <?php if(strpos($_SERVER['REQUEST_URI'],$val['link']) !==false ){ ?> class="active" <?php }?>><?php echo $val['title'];?></a></li>
            <?php }?>
            <!--<li><a href="/product/hot/" <?php if($_GET['app']=='product' && $_GET['act']=='hot'){ ?> class="active" <?php }?>>热销宝贝</a></li>-->
            <!--<li><a href="/zuliaoji/" <?php if($_GET['app']=='zuliaoji' ){ ?> class="active" <?php }?>>足疗机</a></li>-->
            <!--<li><a href="/anmoyidian/" <?php if($_GET['app']=='anmoyidian' ){ ?> class="active" <?php }?>>按摩椅垫</a></li>-->
            <!--<li><a href="/jingjiananmoyi/" <?php if($_GET['app']=='jingjiananmoyi' ){ ?> class="active" <?php }?>>颈肩按摩器</a></li>-->
            <!--<li><a href="/tabuji/" <?php if($_GET['app']=='tabuji' ){ ?> class="active" <?php }?>>踏步机</a></li>-->
            <!--<li><a href="/tuoyuanji/" <?php if($_GET['app']=='tuoyuanji' ){ ?> class="active" <?php }?>>椭圆机</a></li>-->
        </ul>
        <ul class="nav navbar-nav navbar-left nav-list2 left-line" style="padding-left:20px;">
            <li><a href="/product/all/" <?php if($_GET['app']=='product' && $_GET['act']=='all'){ ?> class="active" <?php }?>>全部</a></li>
            <li><a href="/product/other/" <?php if($_GET['app']=='product' && $_GET['act']=='other'){ ?> class="active" <?php }?>>周边商品</a></li>
            <li><a href="/aomas/about/" <?php if($_GET['app']=='aomas' && $_GET['c']=='about'){ ?> class="active" <?php }?>>关于我们</a></li>
            <li><a href="/recruit" <?php if($_GET['app']=='recruit'){ ?> class="active" <?php }?>>招聘</a></li>
        </ul>
        <form action="/search/g/" method="post">
            <div class="input-group header-search">

                <input type="text" name="q" class="form-control" placeholder="" aria-describedby="basic-addon2">
                <span class="input-group-btn">
                    <button class="btn btn-default" type="submit">搜索</button>
                </span>
            </div>
        </form>
    
    </div>
</div>